package com.kanshu.ksgb.fastread.doudou.module.personal.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class BonusPool implements Parcelable {
    public static final long NO_CONFIG = -1L;
    public String bonus_id;
    public String app_id;
    public String number;
    public String number_name;
    public String start_time;
    public String end_time;
    public String total_amount;
    public String residue_amount;
    public long wait_seconds = NO_CONFIG;
    public AccountInfo account_info;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bonus_id);
        dest.writeString(this.app_id);
        dest.writeString(this.number);
        dest.writeString(this.number_name);
        dest.writeString(this.start_time);
        dest.writeString(this.end_time);
        dest.writeString(this.total_amount);
        dest.writeString(this.residue_amount);
        dest.writeLong(this.wait_seconds);
        dest.writeParcelable(this.account_info, flags);
    }

    public BonusPool() {
    }

    protected BonusPool(Parcel in) {
        this.bonus_id = in.readString();
        this.app_id = in.readString();
        this.number = in.readString();
        this.number_name = in.readString();
        this.start_time = in.readString();
        this.end_time = in.readString();
        this.total_amount = in.readString();
        this.residue_amount = in.readString();
        this.wait_seconds = in.readLong();
        this.account_info = in.readParcelable(AccountInfo.class.getClassLoader());
    }

    public static final Parcelable.Creator<BonusPool> CREATOR = new Parcelable.Creator<BonusPool>() {
        @Override
        public BonusPool createFromParcel(Parcel source) {
            return new BonusPool(source);
        }

        @Override
        public BonusPool[] newArray(int size) {
            return new BonusPool[size];
        }
    };
}
